package com.qkjia.day02;

import com.qkjia.day01.SleepUtils;

public class Test08_CAS01 {
    public static int count=0;
    public static void main(String[] args) {
        for (int i = 0; i <2 ; i++) {
            new Thread(()->{
                try {
                    Thread.sleep(10);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }

                for (int j = 0; j <100 ; j++) {
                    count++;
                }
            }).start();
        }
        SleepUtils.second(3);

        System.out.println(count);
    }
}
